package ooday03;

public class Test {
    public static void main(String[] args) {
        Dog[] dogs = new Dog[3];
        dogs[0] = new Dog("小花",2,"黄色");
        dogs[1] = new Dog("小黑", 1, "黑色");
        dogs[2] = new Dog("果冻", 2, "白色");
        dogs[1].swim();
        dogs[1].eat();
        for (int i = 0; i < dogs.length; i++) {
            System.out.println(dogs[i].name);
            dogs[i].housekeeping();

        }



    }
}
